/*
 * CMarkup.h
 *
 *  Created on: 4 oct. 2009
 *      Author: Maxime Gaudin
 */
#ifndef STRING_H
	#include <string>
	#define STRING_H
#endif

#ifndef VECTOR_H
	#include <vector>
	#define VECTOR_H
#endif

#ifndef CMARKUP_HEADER
#define CMARKUP_HEADER
class CMarkup {
	// Constructeur & Destructeur
	public:
		CMarkup(std::string Name, std::string Content);
		~CMarkup();

	// Méthodes publiques
	public:
		std::string getName();
		std::string getContent();
		int getSubMarkupCount();

		void AddSubMarkup(CMarkup::CMarkup* SubMarkup);
		CMarkup::CMarkup* GetSubMarkup(int Index);

		std::string toString();

	// Attributs privés
	private:
		std::string name;
		std::string content;

		std::vector<CMarkup*> subMarkups;
};
#endif /* CMARKUP_H_ */
